package com.dotflat.intro.domain;

import com.dotflat.rest.domain.AreableObjectBase;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "op_intro")
@Data
@EqualsAndHashCode(callSuper = true)
public class OPIntro extends AreableObjectBase {

	@Column(columnDefinition = "longtext  COMMENT '封面'")
	private String content="";

	@Column(columnDefinition = "varchar(512) COMMENT '图片地址'")
	private String static_url;

	@Column(columnDefinition = "varchar(64) COMMENT '文章标题'")
	private String title;

	@Column(columnDefinition = " int default 0  COMMENT '排序'")
	private Integer sort;

}
